<div class="media">
	<a class="pull-left thumbnail" href="<?php echo Yii::app()->createUrl('/Home/news/view', array('slug'=>$data->slug)); ?>">
    	<img class="media-object" src="<?php echo IMAGES_URL . 'news/' . date('Ymd', strtotime($data->posteddate)) . '/' . $data->image; ?>" alt="<?php echo $data->title; ?>" width="160">
    </a>
    <div class="media-body">
        <h4 class="media-heading"><?php echo CHtml::link($data->title, array('/Home/news/view', 'slug'=>$data->slug)); ?> <small>(<?php echo date('d-m-Y', strtotime($data->posteddate)); ?>)</small></h4>
        <p><?php echo $data->description; ?></p>
    </div>
</div>